<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <rich:inputNumberSpinner value="#{test.number}"/>
            <br/>
            <rich:select id="sel" selectFirst="true"  value="#{test.listPosition}" defaultLabel="Wybierz pozycję.">
                <a4j:ajax event="selectitem" render="listPosOutput" execute="@this"/>
                <f:selectItems value="#{test.list}"/>
            </rich:select>
            <br/>
            <h:outputText id="listPosOutput" value="#{test.listPosition}"/>
            <br/>
            <h:link outcome="welcomeRichfaces" value="Richfaces welcome page" />
        </h:form>
    </h:body>
</html>